#include <bits/stdc++.h>
using namespace std;
signed main()
{
    for (int i = 1; i <= 1e4; i++)
        for (int j = 1; j <= 1e4; j++)
        {
            const unsigned long long x = 343720 * i * 2, y = 233333 * j * 2;
            if (17 * x == 15 * y)
            {
                cout << fixed << setprecision(2) << sqrt((double)x * x + y * y);
                return 0;
            }
        }
}